//
//  ZLScrollToolBarConfig.m
//  MapleKit_Example
//
//  Created by 赵磊 on 2020/2/15.
//  Copyright © 2020 itzhaolei. All rights reserved.
//

#import "ZLScrollToolBarConfig.h"

@implementation ZLScrollToolBarConfig

///默认配置
+ (instancetype)defaultConfig {
    ZLScrollToolBarConfig *config = [ZLScrollToolBarConfig new];
    UIColor *color = [UIColor colorWithWhite:51 / 255.0 alpha:1.0];
    UIColor *unColor = [UIColor colorWithWhite:199 / 255.0 alpha:1.0];
    config.showTrackBar = YES;
    config.trackBarColor = color;
    config.trackBarBounds = CGRectMake(0, 0, 25.0, 3.0);
    config.trackBarCornerRadius = config.trackBarBounds.size.height / 2.0;
    config.itemDefaultColor = unColor;
    config.itemSelectedColor = color;
    config.itemDefaultFont = [UIFont systemFontOfSize:15.0];
    config.itemSelectedFont = [UIFont boldSystemFontOfSize:15.0];
    config.minItemSpace = 20.0;
    config.edgeSpace = 16.0;
    config.trackBarBottomSpace = 2.0;
    config.minCountAutoOnCenter = YES;
    return config;
}

@end
